testFramework

fun testFramework(type: TestFrameworkType, version: String = VERSION_CURRENT)

Adds a dependency on the test-framework library or its variant, required for testing plugins.

There are multiple Test Framework variants available, which provide additional classes for testing specific modules, like: JUnit4, JUnit 5, Maven, JavaScript, Go, Java, ReSharper, etc.

The version, if absent, is determined by the IntelliJ Platform build number. If the exact version is unavailable, and the BuildFeature.USE_CLOSEST_VERSION_RESOLVING flag is set to true, the closest available version is used, found by scanning all releases in the repository.

Parameters

type

Test framework variant type.

version

Test framework library version.

See also


fun testFramework(type: Provider<TestFrameworkType>, version: Provider<String>)

Adds a dependency on the test-framework library required for testing plugins.

There are multiple Test Framework variants available, which provide additional classes for testing specific modules, like: JUnit4, JUnit 5, Maven, JavaScript, Go, Java, ReSharper, etc.

The version, if absent, is determined by the IntelliJ Platform build number. If the exact version is unavailable, and the BuildFeature.USE_CLOSEST_VERSION_RESOLVING flag is set to true, the closest available version is used, found by scanning all releases in the repository.

Parameters

type

test framework variant type

version

library version

See also